import { WeaTools } from 'ecCom';

//获取列表
export const getCustomReportList = params => {
    return WeaTools.callApi('/api/workflow/newReport/getNewReportList', 'POST', params);
};
//高级搜索数据
export const getCustomReportHighSearch = params => {
    return WeaTools.callApi('/api/workflow/newReport/getNewReportListCondition', 'POST', params);
};
//报表查询
export const getCRQuery = params => {
    return WeaTools.callApi('/api/workflow/newReport/getNewReportCondition', 'GET', params);
};
//报表另存为
export const getCRSaveAsOther = params => {
    return WeaTools.callApi('/api/workflow/newReport/saveAsNewReport', 'POST', params);
};
//报表删除
export const getCRDelete = params => {
    return WeaTools.callApi('/api/workflow/newReport/deleteReport', 'POST', params);
};
//报表共享
export const getCRShare = params => {
    return WeaTools.callApi('/api/workflow/newReport/getReportShareList', 'GET', params);
};
//添加共享条件
export const getCRShareCondition = params => {
    return WeaTools.callApi('/api/workflow/newReport/getReportShareAddCondition', 'GET', params);
};
//报表共享保存
export const getCRSaveShare = params => {
    return WeaTools.callApi('/api/workflow/newReport/saveReportShare', 'POST', params);
};
//报表共享删除
export const getCRDeleteShare = params => {
    return WeaTools.callApi('/api/workflow/newReport/deleteReportShare', 'POST', params);
};
//添加模板
export const getCRAddTemplate = params => {
    return WeaTools.callApi('/api/workflow/newReport/saveReportTemplate', 'POST', params);
};

//删除模板
export const getCRDeleteTemplate = params => {
    return WeaTools.callApi('/api/workflow/newReport/deleteReportTemplate', 'POST', params);
};
//查看报表搜索
export const getCRViewSearch = params => {
    return WeaTools.callApi('/api/workflow/newReport/getReportData', 'GET', params);
};
//图表的全部数据
export const getChartAllData = params => {
    return WeaTools.callApi('/api/workflow/newReport/getAllData4Echart', 'GET', params);
};
//流程清单
export const getRequestList = params => {
    return WeaTools.callApi('/api/workflow/newReport/getRequestList', 'POST', params);
};

